<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>   
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ page import="com.hmsm.sys.po.UserInfo"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title></title>
		<script src="<%=basePath %>js/jquery.js" type="text/javascript"></script>
		<style type="text/css">
			body {
				margin: 0px;
				font-size: 18px;
				font-family: Verdana, Arial, Helvetica, sans-serif, '新宋体';
			}
			
			.ErrorTitle {
				font-size: 38px;
				color: #3497cf;
				font-weight: bold;
			}
			
			.ErrorMessage li {
				list-style:none;
			}
			
			.ErrorMessage {
				font-size: 18px;
				color: red;
				font-weight: bold;
			}
		</style>
		<script type="text/javascript">
			$(document).ready(function(){
				initSize();
			});
			function initSize(){
				var height = $(window.parent.frames["mainFrame"]).height()-3;
				var width = window.parent.document.getElementById("mainFrame").width-2;
				$("#divMain").height(height);
				$("#divMain").width(width);
			}
			
		</script>
	</head>
<body onresize="initSize()">
	<div id="divMain" style="border:white 1px solid; border-bottom: #ABABAB 1px solid;border-right: #ABABAB 1px solid;min-width: 960px;padding: 0px;margin: 0px;" align="center">
		<div style="margin-top: 180px;font-size: 14px;">
			<s:if test="#session.user==null">
				<span class="ErrorTitle" >发生错误！</span><br/><br/><br/>
				<span class="ErrorMessage" >还未登录系统！【<a href="<%=basePath%>" target="_parent" style="text-decoration:none">重新登录</a>】</span>
			</s:if><s:else>
				<span class="ErrorTitle" >操作发生错误！！</span>
				<br/><br/>
				<s:if test="message==null||message.length==0">
					<s:actionerror cssClass="ErrorMessage"/><br/>
				</s:if><s:else>
					<span class="ErrorMessage"><s:property value="message"/></span>
				</s:else>
			</s:else>
		</div>
	</div>
</body>
</html>